package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class RunfastPrinter implements Serializable {
    private Integer id;

    private Boolean activated;

    private Integer businessid;

    private Integer createby;

    private Date createdate;

    private String key;

    private String sn;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastPrinter withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getActivated() {
        return activated;
    }

    public RunfastPrinter withActivated(Boolean activated) {
        this.setActivated(activated);
        return this;
    }

    public void setActivated(Boolean activated) {
        this.activated = activated;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastPrinter withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public Integer getCreateby() {
        return createby;
    }

    public RunfastPrinter withCreateby(Integer createby) {
        this.setCreateby(createby);
        return this;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public RunfastPrinter withCreatedate(Date createdate) {
        this.setCreatedate(createdate);
        return this;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getKey() {
        return key;
    }

    public RunfastPrinter withKey(String key) {
        this.setKey(key);
        return this;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getSn() {
        return sn;
    }

    public RunfastPrinter withSn(String sn) {
        this.setSn(sn);
        return this;
    }

    public void setSn(String sn) {
        this.sn = sn == null ? null : sn.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", activated=").append(activated);
        sb.append(", businessid=").append(businessid);
        sb.append(", createby=").append(createby);
        sb.append(", createdate=").append(createdate);
        sb.append(", key=").append(key);
        sb.append(", sn=").append(sn);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}